
public class GooseAdapter implements IQuackable {

	Goose goose;
	Observable observable;
		
	public GooseAdapter(Goose goose)
	{
		this.goose = goose;
		observable = new Observable(this);
	}
	
	public void quack() {
		goose.honk();
	}

	public void registerObserver(IObserver observer)
	{
		observable.registerObserver(observer);
	}
	
	public void notifyObservers()
	{
		observable.notifyObservers();
	}
}
